Repository navigation
Upgrade libzstd1 and zstd in the images (fixes the image scan) - #440
Closed
amar-python wants to merge 3 commits into
Closed
amar-python wants to merge 3 commits into
amar-python wants to merge 3 commits into
Conversation
The image scan fails on main: Debian 13.7's libzstd1 1.5.7+dfsg-1 has a HIGH finding fixed in 1.5.7+dfsg-1+deb13u1. Take the security update the same way as zlib1g (named packages only) in the API, Streamlit and database images. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011T6WqhKR6dS4KmR9nHSMJr
Owner
Author
|
Closing without merging. This is superseded by #455, which is merged to main (871640c, then 3721ec7 on the branch). #455 upgrades libzstd1 in the API and database images. This branch is 18 commits behind main and would roll back the base-image digests that #455 and #456 moved (its database image is on postgres digest 3950ad…, main is on ce8115…). The one gap left is the Streamlit image, which upgrades zlib1g but not libzstd1. That will be a small new PR from main. Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The container image scan fails on
mainand on every pull request that builds the images. Trivy reports a HIGH finding in Debian 13.7:libzstd11.5.7+dfsg-1 (CVE-2026-124851), fixed in 1.5.7+dfsg-1+deb13u1. The database image also haszstd. Thepython:3.12-slimbase is pinned by digest and predates the fix.What
Takes the Debian security update the way the images already do for
zlib1g: named packages only, no blanket upgrade, and the line does nothing once the base image carries the fix.container/api.Dockerfileandcontainer/streamlit.Dockerfile:libzstd1.container/db.Dockerfile:libzstd1andzstd.tests/unit/test_container_image_hardening.py: the new packages, and the Streamlit image is now covered.Verification
The image-hardening, scan-workflow and container-bundle unit tests pass. I did not build the images or run Trivy here (no Docker), so the
Container bundlescan jobs on this PR are the real check. The scan output named onlyte-apiandte-db; I addedlibzstd1to the Streamlit image because it uses the same base.Not fixed here: Dependabot's npm pull requests (#420, #423, #424, #425) fail earlier, at
npm ci("Missing: lru-cache@11.5.3 from lock file"), which is a separate problem.Generated by Claude Code